﻿<%@Page Language="C#" Inherits="WinnerCMS.WebFactory.CategoryPage" EnableSessionState="false" EnableViewState="false" %>
<%@ Import Namespace="WinnerCMS.BLL" %>
<!doctype html>
<html>
<head>
<title><%=WebConfig.SiteName %></title>
<meta charset="utf-8" />
<%: Styles.Render("~/WinnerCMS6/Style") %>
<link href="{StylePath}/PhotoIndex.css" rel="stylesheet" type="text/css" media="all" />
<!--[if lt IE 9]><script src="{SysPath}/Scripts/html5shiv.js"></script><![endif]-->
<%: Scripts.Render("~/Script/Base") %>
<meta name="keywords" content="@MetaKeyword@" />
<meta name="description" content="@MetaDescription@" />
<link href="{SysPath}/Scripts/Fotorama/fotorama.css" rel="stylesheet" type="text/css" />
<script src="{SysPath}/Scripts/Fotorama/fotorama.js" type="text/javascript"></script>
    <script runat="server">
        private readonly static CoreManage Bll = new CoreManage();
        private void Page_Load(object sender, System.EventArgs e)
        {
            NewContentList.DataBind();
        }
    </script>
</head>
<body>
<%=Html.Partial("~/Templates/WinnerCMS6/Shared/Header.ascx",this.Model.Id) %>
<div class="wherePath"><%=WebConfig.SiteName %></div>
<div style="height:4px">&nbsp;</div>
<div class="mainDiv" style="clear:both;">
  <TW:DataBox runat="server" ID="NewContentList" DataSource =<%# CategoryManage.GetChildren(this.CategoryId) %>>
    <ItemTemplate>
      <div class="picmain2">
        <div class="col">
          <div class="t"><span><a href="<%# Eval("Link") %>" target="_blank">更多>></a></span><a href="<%# Eval("Link") %>" target="_blank"><%# Eval("CategoryName")%></a></div>
          <ul>
            <asp:Repeater DataSource=<%# Bll.Latests(12,(int)Eval("ID")) %> runat="server">
              <ItemTemplate><li> <a title="<%# Eval("ContentTitle") %>" href="<%# Eval("Link") %>"><img alt="缩略图" src="<%# Eval("PicUrl") %>"></a> <br />
                <a target="_blank" href="<%# Eval("Link") %>" class="ContetnBreak title" title="<%# Eval("ContentTitle") %>"><%# Eval("ContentTitle") %></a></li>
            </ItemTemplate></asp:Repeater>
          </ul>
        </div>
      </div>
    </ItemTemplate>
  </TW:DataBox>
</div>
<div style="height:4px">&nbsp;</div>
<!--#include file="../Footer.aspx"-->
</body>
</html>